{capture name=path}{l s='My Tickets'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h2>My Ticket page</h2>
{include file="$tpl_dir./errors.tpl"}
{if sizeof($tickets)>0}
<div id="block-history" class="block-center">
	<table id="order-list" class="std">
		<thead><tr >
			<th class="first_item">Ticket code</th>
			<th class="item">Subject</th>
			<th class="item">Status</th>
			<th class="item">Date</th>
			<th class="last_item">View</th>
		<tr/></thead>
		<tbody>
		{foreach from=$tickets item=ticket name=foo}
			<tr {if $smarty.foreach.foo.first} class="first_item"{else}class="last_item alternate_item"{/if}>
				<td style="font-weight: bold;">{$ticket.ticket_code}</td>
				<td>{$ticket.subject|truncate:30}</td>
				<td style="background-color: {$ticket.backgroud_color_status};color: {$ticket.text_color_status}; text-align: center;">{$ticket.status}</td>
				<td>{$ticket.date_add|date_format}</td>
				<td><a href="{$ticket.linkViewDetail}">View</a></td>
			<tr/>
		{/foreach}
		</tbody>
	</table>
</div>
{include file="$tpl_dir./pagination.tpl"}
{else}
	Not Found Items
{/if}